//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
//   PACKAGE   : dcf
//   FILE      : IOutgoingBehavior.java
//   INTERFACE : IOutgoingBehavior
//   DATE      : 2006-04-01
//   
//   DESCRIPTION
//   The IOutgoingBehavior interface provides the operations necessary to send a message.
//   
//
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
//   Copyright (c) 2006 by Hal Smith
//
//   Permission is hereby granted, free of charge, to any person obtaining a copy of this source code 
//   (the "Code")to deal with the Code without restriction, including without limitation the rights to use, copy,
//   modify, merge, publish and distribute the Code, and to permit persons to whom the Code is furnished to do 
//   so, subject to the following conditions:
//
//   The above copyright notice and this permission notice shall be included in all copies or substantial 
//   portions of the Software.
//   
//
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
//   VERSION HISTORY
//
//
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

package dcf;


interface IOutgoingBehavior {	

	// This operation sends the supplied message to the specified endpoint. If the send is successful, the
	// operation returns true. If an error occurs in the process of sending the message, the operation returns
	// false. If the error can be determined, the operation will log an error. There are no exceptions thrown
	// by this operation.
    //
	// NOTE: If this operation returns true it does not mean the message was successfully received by the 
	//       remomte endpoint. It only means that the operation was able to get the message on its way. 
	//
	public boolean sendTo(Endpoint endpoint, Message message);
	
} // IOutgoingBehavior